package my.edu.model.information.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@TableName("customer")
public class Customer {
    @TableId(type = IdType.AUTO)
    private Long id;
    private Long customerCategoryId;//客户类别
    private Long priceFieldId;
    private String customerNo;
    private String customerName;
    private String paymentTerms;//收款条件
    private String region;//地区
    private String salesperson;//销售人员
    private Long salespersonId;//销售人员id
    private String contactPerson;//联系人
    private String taxIdentificationNumber;//税号
    private String bankName;//开户银行
    private String bankAccount;//银行帐号
    private String phone;
    private String qqWechat;
    private BigDecimal receivableBalance;//应收余额
    private String associatedRoute;//关联线路
    private Long associatedRouteId;//关联线路id
    private String province;//省
    private String city;//市
    private String district;//区
    private String deliveryAddress;//送货地址
    private String remark;
    private Integer status;
    @TableField(fill = FieldFill.UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;
    @TableField(fill = FieldFill.UPDATE)
    private Long updatedBy;
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;
    @TableField(fill = FieldFill.INSERT)
    private Long createdBy;
}